package com.fifth.emp.feign;

import com.fifth.common.pojo.entity.Permission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @作者：徐志豪
 * @创建时间 2022/8/29 18:33
 **/
@FeignClient(value = "mrcai-permission")
public interface PermissionFeign {
    @GetMapping("/api/permission/findByEmpid/{empid}")
    public List<String> permission(@PathVariable String empid);

    //查询所有的权限
    @PostMapping("api/permission/selectAllPermission")
    public List<Permission> selectAllPermission();
}
